home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1003 b | 26 lines | [TEXT/GEOL] |
- Item 4843423 3-Nov-89 09:16
-
- From: PASCOE1 Pascoe, Geoff
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Re TCellSelectCommand bug
-
- Curtis,
-
- Yeah, this seems to be a bug to me. I think the proper fix would be to
- setfPrevSelection and fDifference to NIL before the call to ICommand. That
- way, when the TCellSelectCommand is freed by a failure handler further up in
- the stack the regions will get freed also- but only if they were allocated in
- the first place, since we check for NIL before trying to free them.
-
- One could set up a failure handler right there to catch the failures but it is
- unnecessary since the TCellSelectCommand will need to free them in the object's
- free method anyway. But, if you had assigned these regions to temporaries
- (i.e., the object proper did not have a handle to them) you would have to set
- up a failure handler since there is no way the Free method could free that
- object.
-
- Geoff
-
-